#pragma once

#include "Base Object.h"


class Button : public BaseObject
{
public:
	Button(){}
	Button(int topx, int topy, int botx, int boty, int texture)
	{
		SetRect(&m_buttonRECT, topx, topy, botx, boty);
		m_vPosition.x = (float)((topx + botx) / 2);
		m_vPosition.y = (float)((topy + boty) / 2);

		m_bDrawing = true;

		textureIndex = texture;
	};
	~Button(){}

	bool CheckIfPressed(POINT&);
	void SetIfDrawing(bool);

	RECT m_buttonRECT;
};